package com.gmsk.pocket.entity;

public class TableWrapper<T> {

    public static final Integer OK = 0;
    public static final Integer ERROR = 100;


    public TableWrapper() {
    }

    public TableWrapper(T data) {
        this.code = OK;
        this.msg = "";
        this.data = data;
    }

    public TableWrapper(Integer code, Integer count, String msg, T data) {
        this.code = code;
        this.count = count;
        this.msg = msg;
        this.data = data;
    }

    private Integer code;
    private Integer count;
    private String msg;
    private T data;


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
